import { createRouter, createWebHistory } from "vue-router";
import pinia from "../views/08_pinia.vue";
// 定义路由
const routes = [
  {
    path: "/pinia",
    name: "pinia",
    component: pinia,
  },
];
// 创建路由实例
const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
